package biz.common.service;

import biz.inv.dto.StockInDetail;

import java.util.ArrayList;
import java.util.Collection;

/**
 * Created by Test on 3/10/14.
 */
public class FactoryReportMock {
    public static Collection<StockInDetail> reportStockInSummary() {
//        ReportStockInSummarySvr svr=new ReportStockInSummarySvr();
//        return svr.search(null);
        Collection<StockInDetail> list = new ArrayList<>();
        for (int i = 0; i < 20; i++) {
            StockInDetail o = new StockInDetail();
            o.setId(i);
            o.setQty(10 + i);
            o.getProduct().setCode("000" + i);
            o.getProduct().setName("Test ภาษาไทย" + i % 4);
            list.add(o);
        }
        return list;
    }

    public static void main() {
        FactoryReportMock.reportStockInSummary();
    }
}
